package com.icbc.webbank;

import java.sql.Connection;
import java.sql.PreparedStatement;


public class DBUtil {
	public static void closeResource(Connection conn) {
		if (conn != null) {
			try {
				conn.close();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}
	
	public static void closeResource(PreparedStatement ps) { 
		if (ps != null) {
			try {
				ps.close();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}
}
